<div class="page-header">
	<h1>Contato</h1>
</div>

<div class="row">
	<div class="col-md-4 col-md-offset-4">
	
		<?php if(count($this->messages) > 0) : ?>
		<div class="alert alert-success"><?php echo current($this->messages[0]); ?></div>
		<?php endif; ?>
	
		<form method="post" role="form">
			<div class="form-group <?php echo isset($this->error['nome']) ? 'has-error' : ''; ?>">
				<?php if (isset($this->error['nome'])): ?>
				<label class="control-label" for="nome"><?php echo current($this->error['nome']); ?></label>
				<?php endif; ?>
				<?php echo $this->form->nome; ?>
			</div>
			<div class="form-group <?php echo isset($this->error['email']) ? 'has-error' : ''; ?>">
				<?php if (isset($this->error['email'])): ?>
				<label class="control-label" for="email"><?php echo current($this->error['email']); ?></label>
				<?php endif; ?>
				<?php echo $this->form->email; ?>
			</div>
			<div class="form-group <?php echo isset($this->error['assunto']) ? 'has-error' : ''; ?>">
				<?php if (isset($this->error['assunto'])): ?>
				<label class="control-label" for="assunto"><?php echo current($this->error['assunto']); ?></label>
				<?php endif; ?>
				<?php echo $this->form->assunto; ?>
			</div>
			<div class="form-group <?php echo isset($this->error['mensagem']) ? 'has-error' : ''; ?>">
				<?php if (isset($this->error['mensagem'])): ?>
				<label class="control-label" for="mensagem"><?php echo current($this->error['mensagem']); ?></label>
				<?php endif; ?>
				<?php echo $this->form->mensagem; ?>
			</div>
			<button class="btn btn-lg btn-primary btn-block" type="submit">enviar</button>
		</form>
		
	</div>
</div>